
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(intro LANGUAGES C)

include_directories(../common)

set(COMPILE_ALL OFF)

list(APPEND _sources ../common/error.c)

if (COMPILE_ALL)
add_executable(ls1 01_ls1.c ${_sources})
add_executable(mycat 02_mycat.c ${_sources})
add_executable(getcputc 03_getcputc.c ${_sources})
add_executable(hello 04_hello.c ${_sources})
add_executable(shell1 05_shell1.c ${_sources})
add_executable(testerror 06_testerror.c ${_sources})
add_executable(uidgid 07_uidgid.c ${_sources})

else()
add_executable(shell2 08_shell2.c ${_sources})
endif()
